"""
*args收集额外的位置参数作为元组，而**kwargs收集额外的关键字参数作为字典。
"""


def answer(*args, **kwargs):
    print(len(args))
    for arg in args:
        print(type(arg))
    print(args, kwargs)


# answer(1, "2", 3, 4, x=1)
#
# answer((1, 2))


# knowledge = "jdz, xxt"
knowledge = ["jdz", "xxt"]

if not isinstance(knowledge, list):
    knowledge = knowledge.split(",")
print(knowledge)
